/**
 * @description 存储配置
 */

const {
    isProd
} = require('../utils/env')
let MYSQL_CONF
let REDIS_CONF

MYSQL_CONF = {
    host: '8.131.228.129',
    user: 'root',
    password: 'bb78e80ae5c48c06',
    port: '3306',
    database: 'art'
}

REDIS_CONF = {
    prot: 6379,
    host: '127.0.0.1'
}

if (isProd) {
    MYSQL_CONF = {
        host: '8.131.228.129',
        user: 'root',
        password: 'bb78e80ae5c48c06',
        port: '3306',
        database: 'art'
    }
    REDIS_CONF = {
        prot: 6379,
        host: '127.0.0.1'
    }
}
module.exports = {
    MYSQL_CONF,
    REDIS_CONF
}